package org.redmaple.core.retrieving;

/**
 * 数据库总指定的排序信息，用于传递参数
 * 
 * @author Xiangyun
 *
 */
public class Sort {
	
	public static enum SortType {
		ASC("asc"),
		DESC("desc");
		
		private String value;
		
		private SortType(String value){
			this.value = value;
		}
		
		public String getValue(){
			return value;
		}
	}

	private String propertyName;
	private SortType sortType;

	public Sort(String propertyName, SortType sortType) {
		this.propertyName = propertyName;
		this.sortType = sortType;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public SortType getSortType() {
		return sortType;
	}
}